package com.empire.module.sporttery.dal.mysql.football500hot;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500hot.Football500HotDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500hot.vo.*;

/**
 * 热度分析明细 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500HotMapper extends BaseMapperX<Football500HotDO> {

    default PageResult<Football500HotDO> selectPage(Football500HotPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500HotDO>()
                .eqIfPresent(Football500HotDO::getMatchId, reqVO.getMatchId())
                .likeIfPresent(Football500HotDO::getName, reqVO.getName())
                .eqIfPresent(Football500HotDO::getPl, reqVO.getPl())
                .eqIfPresent(Football500HotDO::getGl, reqVO.getGl())
                .eqIfPresent(Football500HotDO::getBd, reqVO.getBd())
                .eqIfPresent(Football500HotDO::getBf, reqVO.getBf())
                .eqIfPresent(Football500HotDO::getCjj, reqVO.getCjj())
                .eqIfPresent(Football500HotDO::getCjl, reqVO.getCjl())
                .eqIfPresent(Football500HotDO::getZjyk, reqVO.getZjyk())
                .eqIfPresent(Football500HotDO::getBfzs, reqVO.getBfzs())
                .eqIfPresent(Football500HotDO::getLrzs, reqVO.getLrzs())
                .eqIfPresent(Football500HotDO::getYkzs, reqVO.getYkzs())
                .orderByDesc(Football500HotDO::getId));
    }

}